package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_UserPointFrozenRunning", catalog="Id")
public class TcwUserPointFrozenRunning extends BaseEntity<TcwUserPointFrozenRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="int")
	private Integer type;
	@YsField(nameDataBase="RelativeId", nameJava="relativeId", typeDataBase="bigint")
	private Long relativeId;
	@YsField(nameDataBase="PointFrozenChange", nameJava="pointFrozenChange", typeDataBase="decimal")
	private BigDecimal pointFrozenChange;
	@YsField(nameDataBase="PointFrozenLeft", nameJava="pointFrozenLeft", typeDataBase="decimal")
	private BigDecimal pointFrozenLeft;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwUserPointFrozenRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TcwUserPointFrozenRunning setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public TcwUserPointFrozenRunning setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public TcwUserPointFrozenRunning setType(Integer type) {
		this.type = type;
		return this;
	}
	public Long getRelativeId() {
		return relativeId;
	}
	public TcwUserPointFrozenRunning setRelativeId(Long relativeId) {
		this.relativeId = relativeId;
		return this;
	}
	public BigDecimal getPointFrozenChange() {
		return pointFrozenChange;
	}
	public TcwUserPointFrozenRunning setPointFrozenChange(BigDecimal pointFrozenChange) {
		this.pointFrozenChange = pointFrozenChange;
		return this;
	}
	public BigDecimal getPointFrozenLeft() {
		return pointFrozenLeft;
	}
	public TcwUserPointFrozenRunning setPointFrozenLeft(BigDecimal pointFrozenLeft) {
		this.pointFrozenLeft = pointFrozenLeft;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwUserPointFrozenRunning setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwUserPointFrozenRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwUserPointFrozenRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwUserPointFrozenRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwUserPointFrozenRunning tcwUserPointFrozenRunning(
		String userId,
		String userName,
		Integer type,
		Long relativeId,
		BigDecimal pointFrozenChange,
		BigDecimal pointFrozenLeft,
		String remark,
		Integer status
			) {
		TcwUserPointFrozenRunning entity = new TcwUserPointFrozenRunning();
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setType(type);
		entity.setRelativeId(relativeId);
		entity.setPointFrozenChange(pointFrozenChange);
		entity.setPointFrozenLeft(pointFrozenLeft);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}